using System;
using Migrator;

namespace MRBase.Migrations
{
	/// <summary>
	/// Add Role table to the database
	/// </summary>
	[Migration(2)]
	public class AddRoleTable : Migration
	{
		public override void Up()
		{
			Database.AddTable("Role",
				new Column("Id", typeof(int), ColumnProperties.PrimaryKeyWithIdentity),
				new Column("Name", typeof(string), 50)
			);
		}
		
		public override void Down()
		{
			Database.RemoveTable("Role");
		}
		
	}
}
